package com.easy.mapper;

import com.easy.bean.Member;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberDao {

    int add(@Param("param") Member member);

    int del(@Param("id") Integer id);

    int edit(@Param("param") Member member);

    Member one(@Param("id") Integer id);

    List<Member>  all(@Param("param") Member member);

    int pageCount(@Param("param") Member member);

    List<Member> page(@Param("page")Page page,@Param("param")Member member);

    Member getByPhone(@Param("phone")String phone);
}
